#ifndef __OSAL_MUTEX_H
#define __OSAL_MUTEX_H

#ifdef __cplusplus
 extern "C" {
#endif
#include "System.h"

#if(RTOS_TYPE == RTOS_AZURERTOS)

#include "tx_api.h"

typedef 	TX_MUTEX	OSAL_Mutex;
	
#elif(RTOS_TYPE == RTOS_FREERTOS)
	
typedef 	osMutexId_t	OSAL_Mutex;


#else
typedef 	void		OSAL_Mutex;
#endif

UINT8 OSAL_MutexCreate(OSAL_Mutex *MutexId,void *attr);
UINT8 OSAL_MutexGet(OSAL_Mutex *MutexId,long wait);
UINT8 OSAL_MutexPut(OSAL_Mutex *MutexId);
	
#ifdef __cplusplus
}
#endif
#endif


